#!/usr/bin/env python

import wx
import view.base as b
import resource as r

class ToolBar(wx.ToolBar):
    '''ToolBar class
    
    @author Julot <andy.julot@gmail.com>
    @since Thursday, February 02, 2012. 11:00 PM'''
    
    def __init__(self, parent):
        style = wx.TB_HORIZONTAL | wx.TB_FLAT
        super(ToolBar, self).__init__(parent, style=style)
        self.SetToolBitmapSize((16, 16))
        
        self.browse = b.ToolBarToolBase(self, r.toolbar.FolderOpenImage.Bitmap,
                                        r.string.menu.file.browse.label,
                                        r.string.menu.file.browse.help)
        
        self.AddSeparator()
        
        self.upload = b.ToolBarToolBase(self, r.toolbar.UploadCloud.Bitmap,
                                        r.string.menu.file.upload.label,
                                        r.string.menu.file.upload.help)
        
        self.AddSeparator()
        
        self.help = b.ToolBarToolBase(self, r.toolbar.QuestionButton.Bitmap,
                                      r.string.menu.main.help.label,
                                      r.string.menu.main.help.help)
        self.about = b.ToolBarToolBase(self, r.toolbar.About.Bitmap,
                                       r.string.menu.help.about.label,
                                       r.string.menu.help.about.help)
        self.AddSeparator()
        self.close = b.ToolBarToolBase(self, r.toolbar.DoorOpenOut.Bitmap,
                                       r.string.menu.file.quit.label,
                                       r.string.menu.file.quit.help)
